package com.blacktea.behavioralpatterns.observerpattern;

import org.springframework.context.ApplicationEvent;

/**
 * @description: 订单状态变化事件类
 * @author: black tea
 * @date: 2023/3/25 22:49
 */
public class OrderStatusChangeEvent extends ApplicationEvent {

    private Order order;

    public OrderStatusChangeEvent(Object source, Order order) {
        super(source);
        this.order = order;
    }

    public Order getOrder() {
        return order;
    }
}
